package com.itheima.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @author 阿鹏
 * @date 2021/1/31 13:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("follow_user")
public class FollowUser {

    @Id
    private ObjectId id;
    // 当前用户id
    @Indexed
    private long userId;
    // 关注的人的id
    private long followUserId;
    private long created;
}
